package com.mall.pay.service.impl;

import com.github.wxpay.sdk.WXPay;
import com.mall.pay.service.IWxPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author Darren
 * @date 2022-09-14 14:34
 * Description：
 */
@Service
public class WxPayServiceImpl implements IWxPayService {
    @Autowired
    private WXPay wxPay;

    @Override
    public Map<String, String> preOrder(Map<String, String> dataMap) throws Exception {
        return wxPay.unifiedOrder(dataMap);
    }
}
